﻿<%@ Page Title="Pagina" Language="C#" MasterPageFile="~/Cash.Master" AutoEventWireup="true"
    CodeBehind="Pagina.aspx.cs" Inherits="Cash.View.Administracao.Pagina" %>

<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <table cellpadding="4" cellspacing="0" class="table" style="border-collapse: collapse;"
        align="center">
        <tr>
            <td align="center" colspan="4" class="titletable">
                Pesquisa por Página
            </td>
        </tr>
        <!-- Titulo -->
        <tr>
            <td style="width: 22%" align="right">
                <asp:Label ID="lblDataCadastro" runat="server" Text="Data de Cadastro:"></asp:Label>
            </td>
            <td align="left" style="width: 270px">
                <asp:TextBox ID="txtDataCadastroInicio" runat="server" Width="95px" onfocus="showCalendarControl(this);"
                    Class="data" MaxLength="10"></asp:TextBox>
                &nbsp&nbsp Até &nbsp&nbsp
                <asp:TextBox ID="txtDataCadastroFim" runat="server" Width="95px" onfocus="showCalendarControl(this);"
                    Class="data" MaxLength="10"></asp:TextBox>
            </td>
            <td style="width: 22%" align="right">
            </td>
            <td align="left" style="width: 270px">
            </td>
        </tr>
        <tr>
            <td style="width: 22%" align="right">
                <asp:Label ID="lblNome" runat="server" Text="Nome:"></asp:Label>
            </td>
            <td align="left" style="width: 270px">
                <asp:TextBox ID="txtNome" runat="server" Width="250px" MaxLength="100"></asp:TextBox>
            </td>
            <td style="width: 22%" align="right">
            </td>
            <td align="left" style="width: 270px">
            </td>
        </tr>
        <tr>
            <td align="center" colspan="4">
                <asp:Button ID="btnPesquisar" runat="server" CssClass="button" Text="Pesquisar" OnClick="btnPesquisar_Click" />
                &nbsp&nbsp&nbsp&nbsp&nbsp
                <asp:Button ID="btnNovo" runat="server" CssClass="button" Text="Novo" PostBackUrl="~/View/Configuracao/CadastroPagina.aspx" />
            </td>
        </tr>
        <tr>
            <td align="center" colspan="4">
                <asp:Label ID="lblErro" CssClass="lblErro" runat="server" Text="" Visible="false"
                    class="validacaoCampos"></asp:Label>
                <asp:GridView ID="grvPesquisa" runat="server" Class="gridView" CellPadding="3" GridLines="Vertical"
                    OnRowDataBound="grvPesquisa_RowDataBound" OnRowDeleting="grvPesquisa_RowDeleting"
                    OnRowEditing="grvPesquisa_RowEditing" AllowPaging="True" OnPageIndexChanging="grvPesquisa_PageIndexChanging"
                    AutoGenerateColumns="False">
                    <AlternatingRowStyle BackColor="#DCDCDC" />
                    <Columns>
                        <asp:CommandField ButtonType="Image" DeleteText="Deletar" ShowDeleteButton="True"
                            DeleteImageUrl="~/images/remove.png" EditText="Editar" ShowEditButton="True"
                            EditImageUrl="~/images/note_edit.png" AccessibleHeaderText="Ação" InsertVisible="False"
                            ShowCancelButton="False">
                            <ControlStyle Height="22px" Width="22px" />
                            <ItemStyle CssClass="botaoAcao" />
                        </asp:CommandField>
                        <asp:BoundField DataField="Id" HeaderText="Id" SortExpression="Id" />
                        <asp:BoundField DataField="Nome" HeaderText="Nome" SortExpression="Nome">
                            <ItemStyle Width="250px" />
                        </asp:BoundField>
                        <asp:BoundField DataField="pai" HeaderText="Página pai" SortExpression="pai">
                            <ItemStyle Width="250px" />
                        </asp:BoundField>
                        <asp:BoundField DataField="Url" HeaderText="Url" SortExpression="Url">
                            <ItemStyle Width="300px" />
                        </asp:BoundField>
                        <asp:BoundField DataField="Status" HeaderText="Status" SortExpression="Status" />
                    </Columns>
                    <FooterStyle BackColor="#CCCCCC" ForeColor="Black" />
                    <HeaderStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
                    <PagerStyle BackColor="#999999" ForeColor="Black" HorizontalAlign="Center" />
                    <RowStyle BackColor="#EEEEEE" ForeColor="Black" />
                    <SelectedRowStyle BackColor="#008A8C" Font-Bold="True" ForeColor="White" />
                    <SortedAscendingCellStyle BackColor="#F1F1F1" />
                    <SortedAscendingHeaderStyle BackColor="#0000A9" />
                    <SortedDescendingCellStyle BackColor="#CAC9C9" />
                    <SortedDescendingHeaderStyle BackColor="#000065" />
                </asp:GridView>
            </td>
        </tr>
        <tr>
            <td align="center" colspan="4">
                <asp:Button ID="btnExportar" runat="server" CssClass="button" Text="Exportar" OnClick="btnExportar_Click"
                    Visible="false" />
            </td>
        </tr>
    </table>
</asp:Content>
